import httpInstance from '@/utils/http'


/**
 * 获取结算信息
 */
export const getCheckoutInfoAPI = (orderId) => {
  return httpInstance({
    url:'/order/checkout',
    params: {
      orderId: orderId
    }
  })
}

// 创建订单
export const createOrderAPI = (data) => {
  return httpInstance({
    url: '/order/create',
    method: 'POST',
    data
  })
}